package com.ruoyi.system.domain.ro;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.valid.ValidInsertGroup;
import com.ruoyi.common.valid.ValidUpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 涉旅企业管理业务对象 bs_qiye
 *
 * @author ruoyi
 * @date 2023-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "企业", description = "企业信息表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BsQiyeRo extends BaseEntity {

    /**
     * 企业id
     */
    @NotNull(message = "企业id不能为空", groups = {ValidUpdateGroup.class})
    @ApiModelProperty(value = "企业/店铺ID")
    private Long id;

    /**
     * 所属景区id
     */
    @NotNull(message = "所属景区id不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "所属景区id")
    private Long jingquId;

    /**
     * 名称
     */
    @NotBlank(message = "店铺名称不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "店铺名称")
    private String name;

    /**
     * 类型-字典type
     */
    @NotBlank(message = "店铺类型不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "店铺类型")
    private String type;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "地址")
    private String address;

    /**
     * 经纬度
     */
    @ApiModelProperty(value = "经纬度")
    private String addressDetail;

    /**
     * 营业时间
     */
    @ApiModelProperty(value = "营业时间")
    private String businessTime;

    /**
     * 营业电话
     */
    @ApiModelProperty(value = "营业电话")
    private String businessPhone;

    /**
     * 门头照
     */
    @NotBlank(message = "门头照不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "门头照")
    private String doorImg;

    /**
     * 营业执照
     */
    @NotBlank(message = "营业执照不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "营业执照")
    private String businessLicenseImg;

    /**
     * 申请人姓名
     */
    @NotBlank(message = "申请人姓名不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "申请人姓名")
    private String applyName;

    /**
     * 申请人手机号
     */
    @NotBlank(message = "申请人手机号不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "申请人手机号")
    private String applyPhone;

    /**
     * 状态 0：正常营业 1：暂停营业 2:店铺撤场
     */
    @ApiModelProperty(value = "状态 0：正常营业 1：暂停营业 2:店铺撤场")
    private String status;

    /**
     * 审核人-姓名
     */
    @ApiModelProperty(value = "审核人-姓名")
    private String auditBy;
    @ApiModelProperty(value = "拒绝原因（非必填）")
    private String auditReason;

    /**
     * 审核状态 0待审核 1已通过 2已驳回
     */
    @ApiModelProperty(value = "审核状态 0待审核 1已通过 2已驳回")
    private String auditStatus;

    /**
     * 审核时间
     */
    @ApiModelProperty(value = "审核时间")
    private String auditTime;

    @ApiModelProperty(value = "创建人id")
    private Long createById;

}
